private final class GenericConversionService.ConverterFactoryAdapter extends java.lang.Object implements GenericConverter
GenericConverter.ConvertiblePair
Modifier and Type | Field and Description |
---|---|
private ConverterFactory<java.lang.Object,java.lang.Object> |
converterFactory |
private GenericConverter.ConvertiblePair |
typeInfo |
Constructor and Description |
---|
GenericConversionService.ConverterFactoryAdapter(GenericConverter.ConvertiblePair typeInfo,
ConverterFactory<?,?> converterFactory) |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
convert(java.lang.Object source,
TypeDescriptor sourceType,
TypeDescriptor targetType)
Convert the source to the targetType described by the TypeDescriptor.
|
java.util.Set<GenericConverter.ConvertiblePair> |
getConvertibleTypes()
Return the source and target types which this converter can convert between.
|
java.lang.String |
toString() |
private final GenericConverter.ConvertiblePair typeInfo
private final ConverterFactory<java.lang.Object,java.lang.Object> converterFactory
public GenericConversionService.ConverterFactoryAdapter(GenericConverter.ConvertiblePair typeInfo, ConverterFactory<?,?> converterFactory)
public java.util.Set<GenericConverter.ConvertiblePair> getConvertibleTypes()
GenericConverter
Each entry is a convertible source-to-target type pair.
getConvertibleTypes
in interface GenericConverter
public java.lang.Object convert(java.lang.Object source, TypeDescriptor sourceType, TypeDescriptor targetType)
GenericConverter
convert
in interface GenericConverter
source
- the source object to convert (may be null)sourceType
- the type descriptor of the field we are converting fromtargetType
- the type descriptor of the field we are converting topublic java.lang.String toString()
toString
in class java.lang.Object